import request from '@/utils/request'

// 查询科室分类列表
export function listDept_catalog(query) {
  return request({
    url: '/sms/dept_catalog/list',
    method: 'get',
    params: query
  })
}

// 查询科室分类详细
export function getDept_catalog(id) {
  return request({
    url: '/sms/dept_catalog/' + id,
    method: 'get'
  })
}

// 新增科室分类
export function addDept_catalog(data) {
  return request({
    url: '/sms/dept_catalog',
    method: 'post',
    data: data
  })
}

// 修改科室分类
export function updateDept_catalog(data) {
  return request({
    url: '/sms/dept_catalog',
    method: 'put',
    data: data
  })
}

// 删除科室分类
export function delDept_catalog(id) {
  return request({
    url: '/sms/dept_catalog/' + id,
    method: 'delete'
  })
}

// 导出科室分类
export function exportDept_catalog(query) {
  return request({
    url: '/sms/dept_catalog/export',
    method: 'get',
    params: query
  })
}